package com.example.resourceSharingPlatform.service;

import com.example.resourceSharingPlatform.dao.AccountDao;
import com.example.resourceSharingPlatform.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountService {
    @Autowired
    private AccountDao accountDao;

    public Account queryAccountById(String id){
        return accountDao.queryAccountById(id);
    }

    public Account insertAccount(Account account){
        return accountDao.insertAccount(account);
    }

    public boolean updateAccount(Account account){
        return accountDao.updateAccount(account);
    }

    public boolean deleteAccount(String id){
        return accountDao.deleteAccount(id);
    }
}
